Clover coverage report - Flock Flock - 0.7-dev
Coverage timestamp: Thu Jan 30 2003 01:35:37 EST
file stats: LOC: 61   Methods: 7
NCLOC: 43   Classes: 1
This license of Clover is provided to support the development of Flock only. Please visit http://www.thecortex.net/clover to obtain a licensed version of Clover.
 
 Source file Conditionals Statements Methods TOTAL
HomePage.java - 0% 0% 0%
 1   
 package net.sf.flock.webapp;
 2   
 
 3   
 import java.util.Collection;
 4   
 
 5   
 import net.sf.flock.FlockResourceException;
 6   
 import net.sf.flock.tree.ITreeNode;
 7   
 import net.sf.flock.tree.PathTreeUtil;
 8   
 import net.sf.tapestry.ApplicationRuntimeException;
 9   
 import net.sf.tapestry.IExternalPage;
 10   
 import net.sf.tapestry.IRequestCycle;
 11   
 import net.sf.tapestry.RequestCycleException;
 12   
 import net.sf.tapestry.html.BasePage;
 13   
 
 14   
 public class HomePage extends BasePage implements IExternalPage {
 15   
 
 16   
     private String selectedPath="";
 17   
 
 18   
     private ITreeNode currentNode;
 19   
 
 20  0
     public String getSelectedPath() {
 21  0
         return selectedPath;
 22   
     }
 23   
 
 24  0
     public void setSelectedPath(String selectedPath) {
 25  0
         this.selectedPath = selectedPath;
 26  0
         this.fireObservedChange("selectedPath", selectedPath);
 27   
     }
 28   
     
 29  0
     public void detach() {
 30  0
         this.selectedPath="";
 31  0
         this.currentNode = null;
 32  0
         super.detach();
 33   
     }
 34   
     
 35  0
     public ITreeNode getHierarchy() {
 36  0
         try {
 37  0
             Collection infos = FlockContext.getSubscriptionManager().getSubscriptionInfos();
 38  0
             return PathTreeUtil.getHierarchy( infos.iterator() );
 39   
         } catch (FlockResourceException e) {
 40  0
             throw new ApplicationRuntimeException(e);
 41   
         }
 42   
             
 43   
     }
 44   
 
 45   
     /**
 46   
      * @see net.sf.tapestry.IExternalPage#activateExternalPage(Object[], IRequestCycle)
 47   
      */
 48  0
     public void activateExternalPage(Object[] parameters, IRequestCycle cycle) throws RequestCycleException {
 49  0
         this.setSelectedPath( (String)parameters[0] );
 50   
     }
 51   
 
 52  0
     public ITreeNode getCurrentNode() {
 53  0
         return currentNode;
 54   
     }
 55   
 
 56  0
     public void setCurrentNode(ITreeNode currentNode) {
 57  0
         this.currentNode = currentNode;
 58   
     }
 59   
 
 60   
 }
 61